<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:80:"/home/wwwroot/www.lxlhome.com/public/../application/admin/view/wechat/index.html";i:1558202148;s:71:"/home/wwwroot/www.lxlhome.com/application/admin/view/common/header.html";i:1555692011;s:70:"/home/wwwroot/www.lxlhome.com/application/admin/view/common/crumb.html";i:1555408352;}*/ ?>
<!doctype html>
<html  class="x-admin-sm">
<head>
    <meta charset="UTF-8">
    <title>公众号配置-LXL</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" href="/static/admin/css/font.css">
    <link rel="stylesheet" href="/static/common/css/public.css">
    <link rel="stylesheet" href="/static/common/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/static/admin/css/xadmin.css">
    <script type="text/javascript" src="/static/common/jq/jquery.min.js"></script>
    <script type="text/javascript"src="/static/common/lib/md5/md5.min.js"></script>
    <script src="/static/common/lib/layui/layui.js" charset="utf-8"></script>

    <script type="text/javascript" src="/static/admin/js/xadmin.js"></script>
    <script type="text/javascript" src="/static/admin/js/cookie.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="/static/common/lib/ie/html5.min.js"></script>
    <script src="/static/common/lib/ie/respond.min.js"></script>
    <![endif]-->
    <script>
        // 是否开启刷新记忆tab功能
        // var is_remember = false;
    </script>
</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
          <a href="<?php echo url('Index/welcome'); ?>">首页</a>
          <a><cite>公众号配置</cite></a>
          <a><cite>微信公众号</cite></a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
       href="javascript:window.location.reload();" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>

<div class="x-body">
    <div class="layui-tab layui-tab-brief" lay-filter="tabFilter">
        <ul class="layui-tab-title">
            <li class="layui-this">公众号配置</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form layui-form-pane" action="">
                    <div class="layui-form-item">
                        <label class="layui-form-label">API</label>
                        <div class="layui-input-block">
                            <input type="url" name="url" value="<?php echo isset($data['url'])?$data['url']:''; ?>" autocomplete="off" placeholder="请输入开发者接口地址" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">AppID</label>
                        <div class="layui-input-block">
                            <input type="text" name="appid" value="<?php echo isset($data['appid'])?$data['appid']:''; ?>" autocomplete="off" placeholder="请输入开发者AppID" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">AppSecret</label>
                        <div class="layui-input-block">
                            <input type="text" name="appsecret" value="<?php echo isset($data['appsecret'])?$data['appsecret']:''; ?>" autocomplete="off" placeholder="请输入开发者AppSecret" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">Token</label>
                        <div class="layui-input-block">
                            <input type="text" name="token" value="<?php echo isset($data['token'])?$data['token']:''; ?>" autocomplete="off" placeholder="请输入开发者Token" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">EncodingAesKey</label>
                        <div class="layui-input-block">
                            <input type="text" name="encodingaeskey" value="<?php echo isset($data['encodingaeskey'])?$data['encodingaeskey']:''; ?>" autocomplete="off" placeholder="请输入消息加解密密钥" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">关注欢迎语</label>
                        <div class="layui-input-block">
                            <input type="text" name="welcome" value="<?php echo isset($data['welcome'])?$data['welcome']:''; ?>" autocomplete="off" placeholder="请输入关注欢迎语" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit >更改配置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>
    layui.use(['upload','element','form'], function () {
        var $ = layui.jquery
            , upload = layui.upload
            , form = layui.form
            , element = layui.element;

        form.on('submit',function (data) {
            $.post('<?php echo url("store"); ?>',{data:data.field},function(res){
                layer.msg(res.msg,{time:1000},function(){
                    if (res.code === 0) {
                        location.reload();
                    }
                });
            });
            return false;
        })

    });
</script>
</body>

</html>